// 消耗品弹窗
import { game } from "../../../../script/game/control/game";
import { ListViewAdapter } from "../../../../script/util/ListView/ListViewAdapter";
import { ccs } from "../../../../script/util/services";
import { WinBase } from "../../../../script/wins/WinBase";

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends WinBase {

    @property(ListViewAdapter)
    list: ListViewAdapter = null;

    start () {
        //获取角色背包的物品
        let items = game.playerMgr.bag.itemsBag.getItemsByTypeEx(this._args.id);
        this.list.updateItems(items);
    }
}
